package com.xxx.idam.sample;

import java.io.Serializable;

public class UserModel implements Serializable {

	private UserDomain userDomain;
	
	private boolean newUser;
	
	private String repeatedPassword;
	
	public UserModel(UserDomain userDomain){
		this.userDomain = userDomain;
		
		this.newUser = false;
	}

	public UserModel(){
		this.userDomain = new UserDomain();
		
		this.newUser = true;
	}
	
	public UserDomain getUserDomain() {
		return this.userDomain;
	}

	public boolean isNewUser() {
		return this.newUser;
	}

	public void setRepeatedPassword(String repeatedPassword) {
		this.repeatedPassword = repeatedPassword;
	}

	public String getRepeatedPassword() {
		return this.repeatedPassword;
	}

}
